package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.basic.BasicStoArea;
import com.bzkj.basicinfo.domain.basic.BasicStoStock;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author wl
 * @description 针对表【basic_sto_stock(WMS仓库信息表)】的数据库操作Mapper
 * @createDate 2024-12-13 10:42:22
 * @Entity com.bzkj.basicinfo.domain.basic.BasicStoStock
 */
public interface BasicStoStockMapper
{
    /**
     * 查询库区信息
     * @param entity
     * @return
     */
    List<BasicStoArea> findBasicStoStockData(BasicStoArea entity);

    List<BasicStoArea> findAllBasicStoStockData(BasicStoArea entity);

    void updateBasicStoStockEnableStatus(@Param("status") String status,@Param("stoId") String stoId);

    /**
     * 修改wms状态
     *
     * @param status
     * @param stoId
     */
    void updateBasicStoStockWmsEnableStatus(@Param("status") String status,@Param("stoId") String stoId);
    /**
     * 根据用户ID获取仓库选择框列表
     *
     * @param userId 用户ID
     * @return 选中仓库ID列表
     */
    public List<String> selectWareHouseListByUserId(Long userId);

    /**
     * 根据stoId查询数据
     *
     * @param stoId
     * @return
     */
    BasicStoArea selectOneByStoId(@Param("stoId") String stoId);
    BasicStoStock selectStoStockByStoId(@Param("stoId") String stoId);

    /**
     * 查询所有仓库信息
     * @param stoCode
     * @param stoName
     * @return
     */
    List<BasicStoStock> findStoStock(@Param("stoCode") String stoCode,@Param("stoName") String stoName);

    List<HashMap<String, Object>> findWmsWarehouseInfo(@Param("mode")String mode, @Param("stoId")String stoId,
                                                       @Param("stoCode") String stoCode, @Param("stoName") String stoName,
                                                       @Param("areaId")String areaId, @Param("flag")String flag);
}




